﻿using DemoPrism.Core;
using PcfSimpleToolMod.Views;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Navigation.Regions;

namespace PcfSimpleToolMod
{
    //
    public class PcfSimpleToolModModule : IModule
    {
        private readonly IRegionManager _regionManager;

        public PcfSimpleToolModModule(IRegionManager regionManager)
        {
            _regionManager = regionManager;
        }

        public void OnInitialized(IContainerProvider containerProvider)
        {
            _regionManager.RequestNavigate(RegionNames.ContentRegion, "PcfStMain");
        }

        public void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterForNavigation<PcfStMain>();
        }
    }
}